package org.jeecg.modules.analysisachievement.achstudent.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.analysisachievement.achstudent.vo.AchStudentSubjectScoreVo;
import org.jeecg.modules.analysisachievement.achstudent.mapper.AchStudentSubjectScoreMapper;
import org.jeecg.modules.analysisachievement.achstudent.service.IAchStudentSubjectScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Description: v_ach_student_subject_score
 * @author: baochangrong
 * @Date:   2022-03-21
 * @Version: V1.0
 */
@Service
public class AchStudentSubjectScoreServiceImpl extends ServiceImpl<AchStudentSubjectScoreMapper, AchStudentSubjectScoreVo> implements IAchStudentSubjectScoreService {
    @Resource
    AchStudentSubjectScoreMapper achStudentSubjectScoreMapper;


    @Override
    public IPage<AchStudentSubjectScoreVo> queryAchStudentSubjectScoreVoLists(@Param("achStudentSubjectScoreVo") AchStudentSubjectScoreVo achStudentSubjectScoreVo, @Param("queryParam")  Map<String,String> queryParam, Page<AchStudentSubjectScoreVo> page){
        //获取该租户下所有数据
        System.out.println("009-9-09090-");
        List<AchStudentSubjectScoreVo> achStudentSubjectScoreVoList = achStudentSubjectScoreMapper.queryAchStudentSubjectScoreVoLists(achStudentSubjectScoreVo,queryParam);
        System.out.println("9809909=01515552222222");
        return page.setRecords(achStudentSubjectScoreVoList);
    }
}
